#include "StdAfx.h"
#include "AltiumCircuitHarnessConnectorTypeDisObj.h"




CAltiumCircuitHarnessConnectorTypeDisObj::CAltiumCircuitHarnessConnectorTypeDisObj( CAltiumCircuitHarnessConnectorType* pHarnessConnType )
	:CCircuitAnnotationDisObj(pHarnessConnType)
{

}

CAltiumCircuitHarnessConnectorTypeDisObj::CAltiumCircuitHarnessConnectorTypeDisObj( const CAltiumCircuitHarnessConnectorTypeDisObj* pDisObj,CAltiumCircuitHarnessConnectorType* pHarnessConnType /*== NULL*/ )
	:CCircuitAnnotationDisObj(pDisObj,pHarnessConnType)
{

}


CAltiumCircuitHarnessConnectorTypeDisObj::~CAltiumCircuitHarnessConnectorTypeDisObj(void)
{
}

void CAltiumCircuitHarnessConnectorTypeDisObj::Serialize( CArchive & ar )
{
	CCircuitAnnotationDisObj::Serialize(ar);
}

void CAltiumCircuitHarnessConnectorTypeDisObj::Display( CHoopsMap *pHoopsMap )
{
	CAltiumCircuitHarnessConnectorType* pHarnessConnType = (CAltiumCircuitHarnessConnectorType*)GetEntityObj();
	if (!pHarnessConnType)
	{
		return ;
	}
	bool bHidden = pHarnessConnType->IsHidden();
	if (bHidden)
	{
		return;
	}
	else
	{
		CCircuitAnnotationDisObj::Display(pHoopsMap);
	}


}

CObj * CAltiumCircuitHarnessConnectorTypeDisObj::Clone() const
{
	return new CAltiumCircuitHarnessConnectorTypeDisObj(this);
}

eCircuitUnitType CAltiumCircuitHarnessConnectorTypeDisObj::GetCircuitUnitType() const
{
	return ALTIUM_CIRCUIT_HARNESS_CONN_TYPE_DISOBJ;
}
